﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViewHelpOnline.ascx.cs"
    Inherits="controls_admin_ViewHelpOnline" %>
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5>
            Trợ giúp Online</h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <!-- end box / title -->
    <div class="table">
        <table>
            <asp:Repeater ID="rptHelpOnline" runat="server" OnItemCommand="rptHelpOnline_ItemCommand">
                <HeaderTemplate>
                    <thead>
                        <tr>
                            <th>
                                Yahooo
                            </th>
                            <th>
                                Skype
                            </th>
                            <th class="small">
                            </th>
                            <th class="small last">
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center">
                            <%#Eval("Yahoo")%>
                        </td>
                        <td align="center">
                            <%#Eval("Skype")%>
                        </td>
                        <td class="small" align="center">
                            <asp:Button ID="btnEdit" runat="server" CommandName="edit" BackColor="Transparent"
                                BorderStyle="None" CssClass="icon-32-edit" />
                        </td>
                        <td class="small last" align="center">
                            <asp:Button ID="btnDel" runat="server" CommandName="del" CssClass="icon-32-delete"
                                BackColor="Transparent" BorderStyle="None" />
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </tbody>
                </FooterTemplate>
            </asp:Repeater>
        </table>
        <div style="text-align: center; margin: 10px">
            <%if (Session["url"] != null)
              {
                  if (Request.UrlReferrer != null)
                  {
                      if (!Request.UrlReferrer.ToString().Equals(Request.Url.ToString()))
                      {
                          Session["url"] = Request.UrlReferrer.ToString();                      
                  
            %>
            <a onclick="history.go(-1);" title="Trang trước">
                <%
}
                      else
                      {
                %>
                <a href='<%=Session["url"].ToString() %>' title="Trang trước">
                    <%   
}
                  }
                  else
                  {                      
                    %>
                    <a onclick="history.go(-1);" title="Trang trước">
                        <%}
              }
              else
              {
                  if (Request.UrlReferrer != null)
                      Session.Add("url", Request.UrlReferrer.ToString());
                  else
                      Session.Add("url", Request.Url.ToString());
                        %>
                        <a href="default.aspx" title="Trang trước">
                            <%} %>
                            <img src="../resources/images/icons/16x16/arrow-return.png" alt="Trang trước" /></a>
                        &nbsp;&nbsp; <a href="default.aspx" title="Trang chủ">
                            <img src="../resources/images/icons/16x16/home.png" alt="Trang chủ" /></a>
        </div>
    </div>
</div>
<!-- end table -->
